package com.gfxy.educational.quartz;

import com.gfxy.educational.entity.EduCourseTime;
import com.gfxy.educational.service.QuartzService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * @author: lijixin 2019-05-24
 */
public class StudentAppraiseTask implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        EduCourseTime courseTime  = (EduCourseTime) jobExecutionContext.getMergedJobDataMap().get(QuartzService.COURSE_TIME_PARAM);
        System.out.println(new Date()   + " " + jobExecutionContext.getTrigger().getKey().getGroup() + " " + jobExecutionContext.getTrigger().getKey().getName() + " " + courseTime);
    }


}
